package com.anrongtec.zcpt.constant;

/**
 * 作者：liuhui on 2017/2/13 11:17
 * 邮箱：liu594545591@126.com
 * 描述：URLConstants
 */

/**
 * 返回码
 * @author cxy
 *
 */
public interface URLConstants {
    /**
     * 返回码
     * @author cxy
     *
     */
    public static class RetCode{
        /**成功*/
        public static final String SUCCESS = "0000";
        /**参数错误*/
        public static final String PARAM_ERROR = "0001";
        /**业务处理错误,具体看信息描述*/
        public static final String BUSINESS_ERROR = "0002";
        /**登录超时,重新登录*/
        public static final String TIMEOUT_ERROR = "2222";
        /**后台服务异常*/
        public static final String SERVICE_ERROR = "9999";
    }

    public static final String BUSCODE = "busCode";
    /**
     * 接口代码
     * @author cxy
     *
     */
    public static class BusCode{
        public static final String LOGIN = "0000";
        public static final String LOGOUT = "0001";
        public static final String BANNER = "0003";
        //查询
        public static final String QUERY = "0004";
        //分类查询
        public static final String TYPE_QUERY = "0005";
        //下载
        public static final String DOWNLOAD = "0006";
        //app升级检查接口
        public static final String APP_UPGRADE = "0007";
        //应用商店升级接口
        public static final String UPGRADE = "0008";
        //意见反馈
        public static final String FEEDBACK = "0009";
        //版本信息
        public static final String VERSION_INFO = "0010";
        //安装卸载日志上报
        public static final String DATA_UPLOAD = "0011";
        //评论打分
        public static final String COMMENT = "0012";
        //评论查询
        public static final String QUERY_COMMENT = "0013";
        /**按版本号和包名查询app*/
        public static final String SEARCH_APP = "0014";

    }
    //app排序
    public static final int SORT_LATEST = 1;
    public static final int SORT_DOWNLOAD = 2;
    public static final int SORT_COMMENT = 3;

    //app分类
    public static final String APP_TYPE_POLICE = "PolicType";
    public static final String APP_TYPE_AREA = "AreaType";
    public static final String APP_TYPE_BUS = "BusType";

    //app安装卸载事件
    public static final String TYPE_INSTALL = "install";
    public static final String TYPE_UNINSTALL = "uninstall";

}